<?php

/**
 * TestHook class
 * implementation of a testing plugin hook
 *
 * @author Sam-Mauris Yong <hellclanner at live dot com>
 * @license http://www.opensource.org/licenses/bsd-license New BSD License
 * @package Raise.UnitTest.Mocks
 */
class TestHook2 implements IRaisePluginHook {

    /**
     * The plugin that called this hook
     * @var RaisePlugin
     */
    private $plugin;
    
    /**
     * Create a new test hook
     * @param RaisePlugin $plugin 
     */
    public function __construct($plugin){
        $this->plugin = $plugin;
    }

    /**
     * Test Hook Call
     * @param double $context
     */
    public function call(&$context = null) {
        $service = $this->plugin->manager()->service('testService');
        $context = $service->calculateCircleArea($context);
    }

}
